body {
max-width: 540px;
min-width: 320px;
margin: 0 auto;
font: normal 14px/1.5 Tahoma,"Lucida Grande",Verdana,"Microsoft Yahei",STXihei,hei;
color: #000;
background: #f2f2f2;
overflow-x: hidden;
-webkit-tap-highlight-color: transparent;
//  padding-bottom: 50px;
}
ul{
    // 去掉li前的原点
    list-style: none;
    margin: 0;
    padding: 0;
}
div{
    box-sizing: border-box;
}
a{
        text-decoration: none;
}
// 搜索模块开始
.search-index{
    display: flex;
    // 固定定位，跟父级没关系，以屏幕为主
    position: fixed;
    top:0;
    left: 50%;
    // 移动距离是元素自身宽度的50%，负号表示向左移动
    -webkit-transform:ranslateX(-50%);
    transform: translateX(-50%);
    // left: auto;
    // 固定的盒子要有宽度
    width: 100%;
    max-width: 540px;
min-width: 320px;
    height: 44px;
    background-color: #f6f6f6;
    border-top:1px solid #ccc;
    border-bottom: 1px solid #ccc;
    // 有定位后margin 0 auto无效
    .search{
    flex:1;
    height: 26px;
    line-height: 24px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin:7px 10px;
    padding-left: 25px;
            border: 1px solid blue;
            position: relative;
            font-size: 12px;
            color: #666;
            box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
    &::before{
        content:"";
            // display: block;
            position: absolute;
            top:5px;
            left:5px;
            width: 15px;
            height: 15px;
            background: url(../images/sprite.png) no-repeat -59px -279px;
            background-size: 104px auto;
            // margin: 5px;加了定位后margin就没效果了
            border: 1px solid red;
    }
    }
    .user{
        width: 44px;
        height: 44px;
        font-size: 12px;
        text-align: center;
        // color: #f2f2f2;
        &::before{
            content:"";
            display: block;
            width: 23px;
            height: 23px;
            background: url(../images/sprite.png) no-repeat -59px -194px;
            background-size: 104px auto;
            margin: 4px auto -2px/;
        }
    }
}
//搜索模块结束

// 焦点图模块
.focus{
    // margin-top:44px;
    padding-top:44px;
    img{
       width: 100%; 
    }
}
// 焦点图模块结束

// 局部导航栏开始
.local-nav{
    // 不要给宽度
    display: flex;
    height: 64px;
    background-color: #fff;
    margin: 3px 4px;
    border-radius: 8px;
    font-size:12px;
    li{
        flex:1;
        a{
            display: flex;
            flex-direction: column;
            align-items: center;
            color:#222;
            // padding-top:8px;
            // .local-icon{
            [class^="local-icon"]{
                width: 32px;
                height: 32px;
                background-color: pink;
                margin-top:8px;
                background: url(../images/localnav_bg.png) no-repeat 0 0;
                background-size: 32px auto;
            }
            .local-icon-icon2{
                background-position: 0 -32px;
            }
        }
    }
}
// 局部导航栏结束

// 主导航栏开始
nav{
    border-radius: 8px;
    margin: 0 4px 3px;
    overflow: hidden;
    .nav-common{
        display: flex;
        height: 88px;
        background-color: pink;
        &:nth-child(1){
            // 背景渐变必须添加webkit
            background: -webkit-linear-gradient(left,#FA5A55,#FA994D);
        }
        &:nth-child(2){
            margin: 3px 0;
        }
        .nav-items{
            flex:1;
            display: flex;
            flex-direction: column;
            // align-items: center;
           
            a{
                flex: 1;
                text-align: center;
                line-height: 44px;
                 color: #fff;
                font-size: 14px;
                text-shadow: 1px 1px rgba(0, 0, 0, .2);
                &:first-child{
                border-bottom: 1px solid #fff;
               
                }
            }
             &:nth-child(1) a{
                border: 0;
                background: url(../images/hotel.png) no-repeat bottom center;
                background-size: 121px auto;
            }
            // -n+2前2个
            &:nth-child(-n+2){
                border-right: 1px solid #fff;
            }
        }
    }
}
// 主导航栏结束

// 测导航栏开始
.subnav-entry{
    border-radius: 8px;
    background-color: #fff;
    margin:0 4px;
    display: flex;
    flex-wrap: wrap;
    padding: 5px 0;
    li{
        flex:20%;
        a{
            display: flex;
            flex-direction: column;
            align-items: center;
            .subnav-entry-icon{
                width: 28px;
                height: 28px;
                background-color: pink;
                margin-top: 4px;
                background: url(../images/subnav-bg.png) no-repeat;
                background-size: 28px auto;
            }
        }
    }
}
// 测导航栏结束

// 销售模块开始
.scale-box{
    border-top: 1px solid #bbb;
    background-color: #fff;
    margin: 4px;
    .scales-hd{
        height: 44px;
        border-bottom: 1px solid #ccc;
        position: relative;
        // display: flex;
        // justify-content: space-between;
        h2{
            // 方法1文字消失
        //    font-size: 0;
        // 文本隐藏技术
           text-indent: -999px;
           overflow: hidden;

           &::after{
            position: absolute;
            top: 10px;
            left: 20px;
            content: "";
            width: 79px;
            height: 15px;
            background: url(../images/hot.png) no-repeat 0 -20px;
            background-size: 79px auto;
           }
        }
        a{
            position: absolute;
            top:0px;
            right: 5px;
            background: -webkit-linear-gradient(left,#ff506c,#ff6bc6);
            border-radius: 8px;
            padding:3px 20px 3px 10px;
            color:#fff;
            &::after{
                content: "";
                position: absolute;
                top: 9px;
                right: 9px;
                width: 7px;
                height: 7px;
                border-top:2px solid #fff ;
                border-right:2px solid #fff ;
                transform: rotate(45deg);
            }
        }
    }
    .sales-bd{
        .row{
            display: flex;
            a{
                flex:1;
                border-bottom: 1px solid #eee;
                &:first-child{
                    border-right: 1px solid #eee;
                }
                img{
                  width: 100%;
                }
            }
        }
    }
}
// 销售模块结束
